<div class="easy-ajajform">

</div>
<script>
{
var formsrc={{JSON:form}};
var href={
	header: formsrc.header,
	layouttemplate: {{JSON:form_style.real_body}}
};
{{if form.config.action}}
href.submit={
	url: '{{form.config.action}}',
	ajaj: true,
	params: {mode: 'save',ajaj:1},
	value: "{{form.config.submit_value}}"
};
{{/if}}
var form=$(".easy-ajajform").ajajform(href);
for (var i=0;i<formsrc.config.widgets.length;i++) {
	var w=formsrc.config.widgets[i];
	form.ajajform("insertWidget",w.place,null,w.options);
}
}
</script>
